package com.yixin.hospital.entity.dto.req.drugdepository;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("新增库房请求体")
public class DrugDepositoryAddReqDTO {
    @ApiModelProperty(value = "库房名称", example = "河北库房")
    @NotBlank(message = "库房名称不能为空")
    private String name;

    @ApiModelProperty(value = "所属部门id", example = "1")
    @NotNull(message = "所属部门不能为空")
    private Long dept;

    @ApiModelProperty(value = "是否总库（0-否 1-是）", example = "1")
    @NotNull(message = "是否总库不能为空")
    private Integer isTop;

    @ApiModelProperty(value = "管理员用户id", example = "1")
    @NotNull(message = "管理员用户id不能为空")
    private Long managerUserId;
}
